package com.master;

import static com.util.Vessel.*;

public class magMenusCrm {

    //管理菜单
    public void magMenus(){
        System.out.println("请选择你的操作:1:增加新菜    2:删除菜品    3:更改菜品信息");
        int choice = scanner.nextInt();
        switch (choice){
            case 1:
                System.out.println("菜单信息如下:");
                opMenuSer.vsMenusService();
                magMenuSer.addMenu();
                System.out.println("更改后菜单信息如下:");
                opMenuSer.vsMenusService();
                break;
            case 2:
                System.out.println("菜单信息如下:");
                opMenuSer.vsMenusService();
                magMenuSer.delMenu();
                System.out.println("更改后菜单信息如下:");
                opMenuSer.vsMenusService();
                break;
            case 3:
                System.out.println("菜单信息如下:");
                opMenuSer.vsMenusService();
                magMenuSer.alterMenu();
                System.out.println("更改后菜单信息如下:");
                opMenuSer.vsMenusService();
                break;
        }
    }
}
